package com.google.code.swingonfire.component.clock;

import java.awt.Graphics2D;

public interface JClockRenderer
{

    void drawForeground(JClock clock, Graphics2D g, int width, int height);

    double toAngle(JClock clock, JClockHandType type, double value);

    double fromAngle(JClock clock, JClockHandType type, double value);

    JClockHandType getHit(JClock clock, int x, int y, int width, int height);

    boolean isHourHandHit(JClock clock, int x, int y, int width, int height);

    boolean isMinuteHandHit(JClock clock, int x, int y, int width, int height);

    boolean isSecondHandHit(JClock clock, int x, int y, int width, int height);

    void drawBackground(JClock clock, Graphics2D g, int size);

}
